package mycompiler.semantic;

import junit.framework.TestCase;

public class RecursionTest extends TestCase {

	Recursion rcs;
	String s;
	
	protected void setUp() throws Exception {
		s = new String("PROGRAM ; what");
		rcs = new Recursion(s);
		super.setUp();
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}

	public void testNewNode() {
		String str1 = "asd";
		int ln = 10;
		//assertEquals(rcs.newNode(s).lineno, 10);
		assertEquals(this.forTestNewNode(rcs, str1, ln), 10);
		//fail("Not yet implemented");
	}
	
	public int forTestNewNode(Recursion r, String s, int l)
	{
		r.lineno = l;
		r.newNode(s);
		return r.lineno;
	}
	
	public boolean forTestNewNode(Recursion r, String s)
	{
		return true;
	}

}
